package cn.guangke.chapter05.controller;//package cn.guangke.chapter04.controller;
//
//import cn.guangke.chapter04.domain.User;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.GetMapping;
//
//import java.util.Arrays;
//import java.util.Date;
////        model.addAttribute("des","动态数据des");
////        model.addAttribute("des1","动态数据des1");
//
//@Controller
//public class IndexController {
//    @GetMapping("/index")
//
//    public String index(Model model){
////        model.addAttribute("title","动态数据title");
//    return "index";
//    }
//
//    @GetMapping("/index1")
//    public String index1(Model model){
//        User user1 = new User();
//        user1.setUsername("lisa");
//        user1.setAge(20);
//        user1.setSex(1);
//        user1.setVip(true);
//        user1.setDateTime(new Date());
//        user1.setHobys(Arrays.asList("reading","play"));
//        model.addAttribute("user",user1);
//        return "index1";
//    }
//}
